﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Uinside.CreditSystem.DomainModels.Models
{
    public class Image : BaseModel
    {
        private string _title;
        [StringLength(100)]
        public string Title
        {
            get { return _title; }
            set
            {
                SetField(ref _title, value, "Title");
            }
        }

        private byte[] _data;
        public virtual byte[] Data
        {
            get { return _data; }
            set
            {
                SetField(ref _data, value, "Data");
            }
        }

        private int _displayOrder;
        public int DisplayOrder
        {
            get { return _displayOrder; }
            set
            {
                SetField(ref _displayOrder, value, "DisplayOrder");
            }
        }
    }
}
